package com.luke.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class MyFallbackHandler {

    //fallback可以包含异常参数Throwable
    //方法必须为static且参数一样
    public static String fallback1(@PathVariable Integer id,Throwable throwable){
        return "fallback1处理";
    }

}
